package day03;

public class OperDemo3 {
    public static void main(String []args){
int a = 5,b = 10,c = 5;
/*boolean b1 = a<b&&c>a;
        System.out.println(b1);//false
        System.out.println(a>c&&c>=a);//false
        System.out.println(b>a&&b>=c);//true
        System.out.println(a<=c&&c<=b);//true
        System.out.println(b>c&&b<=a);//false
        System.out.println(c==a&&b>c);//true
        System.out.println(b==a&&b>a);//false
        System.out.println(c>=a&&b>a);//true
        System.out.println(a%b<=c&&c<=a);//true
        System.out.println("---------------------");

        System.out.println(a>b||a<b);//true
        System.out.println(a==c||a<b);//true
        System.out.println(a>=c||b>=c);//true
        System.out.println(a>c||b<a);//false
        int score = 80;
        System.out.println(score<0||score>150);//false||false 成绩不合法
        System.out.println("=========================================" );

boolean b2 =!(a>b||a<=c);//!（false||true=true)=false
        System.out.println(b2);*/

        /*boolean b3 = a>b&&a==c;
        System.out.println(b3);//false
        System.out.println(c);//5*/
        /*boolean b4 = b>a||b<a++;
        System.out.println(b4);//true
        System.out.println(a);//5短路了||后面没有运算*/

        boolean b5 = a>b&&a++>1;
        System.out.println(b5);//false
        System.out.println(a);//短路了a=5
    }
}
